/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ins.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 模板管理Entity
 * @author fanqinglong
 * @version 2017-11-21
 */
public class InsTemplate extends DataEntity<InsTemplate> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 模板名称
	private String src;		// 路径
	private String originName;  // 源文件名称
	private Integer sort = 10;		// sort
	
	public InsTemplate() {
		super();
	}

	public InsTemplate(String id){
		super(id);
	}

	@Length(min=1, max=64, message="模板名称长度必须介于 1 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=1, max=200, message="路径长度必须介于 1 和 200 之间")
	public String getSrc() {
		return src;
	}

	public void setSrc(String src) {
		this.src = src;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getOriginName() {
		return originName;
	}

	public void setOriginName(String originName) {
		this.originName = originName;
	}
}